#ifndef _H_DEF_NETCONF_H_
#define _H_DEF_NETCONF_H_


typedef struct _ST_net_dogparam
{
	BYTE	HOSTADDR[4];
	UINT32	TCPPORT;
	UINT32	UDPPORT;
	
	TCHAR	szServerLst[512];
	
	CHAR	developerid[32];
	WCHAR	username[128];
	BYTE	pwd[128];
	
	UINT	nremberpwd;
	UINT	nautologin;
	
	WCHAR	szINI[MAX_PATH+1];
	
}ST_net_dogparam,*PST_net_dogparam;


#define SAVE_MASK_ALL 0xFFFFFFFF 
#define SAVE_NET_CONFIG_HOSTIP  0x01 //1 2 4
#define SAVE_NET_CONFIG_TCPPORT 0x02

#define SAVE_NET_USERNAME 0x04
#define SAVE_NET_PWD      0x08
#define SAVE_NET_AUTOLGN  0x10
#define SAVE_NET_REMPWD   0x20



DWORD WINAPI load_netdogparam_cfg(IN OUT ST_net_dogparam *pstparam,IN const WCHAR *wszini);
DWORD WINAPI save_netdogparam_cfg(IN ST_net_dogparam *pstparam,IN const WCHAR *wszini,IN DWORD dwSaveMask);


#endif _H_DEF_NETCONF_H_